﻿var uid = '1234567890123456';

$(document).ready(function () {
    uid = $('#HfUser').val();

    $("#gtdsd").datepicker();
    $("#gtdtd").datepicker();
    $("#gtded").datepicker();
    $("#gtdeach").spinner();
    $("#gtdwhen").spinner();
    $("#gtdec").spinner();
});

function chgSpnr(obj) {
    var obj = $("#gtdunit").find("option:selected");
    var max = eval(obj.attr("max"));
    var min = eval(obj.attr("min"));

    $("#gtdeach").spinner("option", "max", max);
    $("#gtdeach").spinner("option", "min", min);

    $("#gtdwhen").spinner("option", "max", max);
    $("#gtdwhen").spinner("option", "min", min);
}
function showRpt() {
    $('#tbgtd').hide();
    $('#tbrpt').show();
}
function hideRpt() {
    $('#tbrpt').hide();
    $('#tbgtd').show();
}
function showEnd() {
    $('#tbgtd').hide();
    $('#tbend').show();
}
function hideEnd() {
    $('#tbend').hide();
    $('#tbgtd').show();
}